<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Env;
return [
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------
    // 应用命名空间
    'app_namespace'          => 'app',
    // 应用调试模式
    'appsecret'=>'570605dc69bf489576887da2eaf522bd',
    'appid'=>'wxc638f17b1487b737',
    'redirect_uri'=>'http://sb2scb.natappfree.cc',
    //高德地图key
    'Amap_Version'=>'1.3',//地图版本
    "WEB_URL"=>"http://192.168.2.186:18181/",
    'Amap_Webserver_Key'=>'c639c96fc804ff68da0c45ffcd0730b2',//WEB服务端KEY
    'Amap_Web_Key'=>'d9c11d1b67d2b0977659d11a618187a0',//WEB端KEY
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => false,
    // 应用模式状态
    'app_status'             => Env::get('status','env'),
    // 是否支持多模块
    'app_multi_module'       => true,
    // 入口自动绑定模块
    'auto_bind_module'       => false,
    // 注册的根命名空间
    'root_namespace'         => [],
    // 扩展函数文件
    'extra_file_list'        => [THINK_PATH . 'helper' . EXT],
    // 默认输出类型
    'default_return_type'    => 'html',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return'    => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler'  => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler'      => 'callback',
    // 默认时区
    'default_timezone'       => 'PRC',
    'salt'=>'helloword',
    'salts'=>'helloworda123456',
    //商品展示页数
    'goodspage'=>2,
    // +------------------ ----------------------------------------------------
    // | 模块设置
    // +---
    // 默认模块名
    'default_module'         => 'admin',
    // 禁止访问模块
    'deny_module_list'       => ['common'],
    // 默认控制器名
    'default_controller'     => 'Index',
    // 默认操作名
    'default_action'         => 'index',
    // 默认验证器
    'default_validate'       => '',
    // 默认的空控制器名
    'empty_controller'       => 'Error',
    // 操作方法后缀
    'action_suffix'          => '',
    // 自动搜索控制器
    'controller_auto_search' => false,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------

    // PATHINFO变量名 用于兼容模式
    'var_pathinfo'           => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr'          => '/',
    // URL伪静态后缀
    'url_html_suffix'        => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param'       => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'DB_BACKUP' => APP_PATH . "../Public/cache/dbbak/",
    'imgurl' => "http://192.168.2.186:19193/static/uploads/",
    'url_param_type'         => 0,
    // 是否开启路由
    'url_route_on'           => true,
    // 路由使用完整匹配
    'route_complete_match'   => false,
    // 路由配置文件（支持配置多个）
    'route_config_file'      => ['route'],
    // 是否强制使用路由
    'url_route_must'         => false,
    // 域名部署
    'url_domain_deploy'      => true,
    // 域名根，如thinkphp.cn

    // +----------------------------------------------------------------------
    // | 模板设置
    // +----------------------------------------------------------------------
    'template'               => [
        // 模板引擎类型 支持 php think 支持扩展
        'type'         => 'Think',
        // 模板路径
        'view_path'    =>  '',
        //默认主题
        // 模板后缀
        'view_suffix'  => 'html',
        // 模板文件名分隔符
        'view_depr'    => '_',
        // 模板引擎普通标签开始标记
        'tpl_begin'    => '{',
        // 模板引擎普通标签结束标记
        'tpl_end'      => '}',
        // 标签库标签开始标记
        'taglib_begin' => '{',
        // 标签库标签结束标记
        'taglib_end'   => '}',
        'view_base'=>__DIR__.'/../template/', //入口文件在public下
    ],
    // 视图输出字符串内容替换
    'view_replace_str'  => [
        '__HLIB__'          =>  '/static/hui/lib/',
        '__HSTATIC__'       =>  '/static/hui/static/',
        '__HTEMP__'         =>  '/static/hui/temp/',
        '__ACSS__'          =>  '/static/admin/css/',
        '__AJS__'           =>  '/static/admin/js/',
        '__HJS__'           =>  '/static/home/js/',
        '__HIMG__'          =>  '/static/home/images/',
        '__HCSS__'          =>  '/static/home/css/',
        '__UPLOADS__'       =>  '/static/uploads/',
        '__HY__'            =>  '/static/layer/',
        '__UPS__'            => '/static/uploads/',
    ],
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl'  => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    'dispatch_error_tmpl'    => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    "error_message" => "页面错误！请稍后再试!!!!!!～",
//验证码
    'captcha'  => [
        // 验证码字符集合
        'codeSet'  => '1234567890',
        // 验证码字体大小(px)
        'fontSize' => 18,
//		'useZh'=>true,
//		'zhSet'=>'们以我到他会作时要动国产的一是工就年阶义发成部民可出能方进在了不和有大这',
        // 是否画混淆曲线
        'useCurve' => false,
        // 验证码图片高度
        'imageH'   => 40,
        // 验证码图片宽度
        'imageW'   => 125,
        // 验证码位数
        'length'   => 4,
        // 验证成功后是否重置
        'reset'    => true
    ],
    'session'                => [
        'id'             => '',
        'auto_start'     => true
    ],
    //分页配置
    'paginate'      => [
        'type'      => 'page',
        'var_page'  => 'page',
        'list_rows' => 12,
    ],
    //上传路径
    'UPLOADS' =>[
        'PATH' => ROOT_PATH . 'public' . DS . 'static/uploads',
        'EXT' => array('jpg', 'png', 'gif', 'jpeg'),
        'SIZE' => 1024 * 1024 * 1000,
    ],
    $config=array(
        'path'     => './Data/',//数据库备份路径
        'part'     => 20971520,//数据库备份卷大小
        'compress' => 0,//数据库备份文件是否启用压缩 0不压缩 1 压缩
        'level'    => 9 //数据库备份文件压缩级别 1普通 4 一般  9最高
    ),
    'alipay' =>[
        'debug'       => false,// 沙箱模式
        //应用ID,您的APPID。
        'app_id' => "2018051860137879",
        //商户私钥, 请把生成的私钥文件中字符串拷贝在此
        'merchant_private_key' => 'MIIEvAIBAD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qA0DfkPpq25pMqNaNy7zkT81oqglR69NLF66N8mGlP71Phg1P8IEJQWHHioZsGbBoZOMtqH2TNyCtFui5U39qYN9D7qgjsQmF6lB8anRFcUIC5K0802J5+lI+KBuNfHgwqJ/PuX0PcQjU6dFR8sNsR72EPSv1WG9trXVmDZSVnAoGAdSU1Pe5lrFl+afFHGZEY0/vhSArirq7lA4oq4CCEy8UtjBOr3t6YULW5tFLx2pDSnEZtDL5pNttHzQPvD0RTGxsxxG0maZhk2fbSa7JTqyePht4YRqT6Wc51VXyQ9/6wwCnnrAVogGFfN1E3TQ5LNSyWLOYvCpilLFZ7QKYhsQkCgYBFRpljgzaVQ6ubiHN51NF8nYV6GiwBLre96bk/UrwcegWiQ4ijwbXYDNFW0Pez7PLUZZhKo8kipSrGP3U48PBN8zw5YelS9YwMvxj8cQBYd/ka/Ab3OvVQNfT/85KoLmaF4KkGYYYVThzkfIAbuvZxXhbQA7TXS5mrh1Y9stO34g==',
        //异步通知地址
        'notify_url' => "http://sunmiaoling.xyz:18181//notify/index",
        //同步跳转
        'return_url' => "",
        //编码格式
        'charset' => "UTF-8",
        //签名方式
        'sign_type'=>"RSA2",
        //支付宝网关
        'gatewayUrl' => "https://openapi.alipay.com/gateway.do",
        //支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
        'alipay_public_key'  => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr6g9R86Y+8xwlaum97hUBbf5MLkYXwWafMML1GX40e3lAkLVwAC+6AulM4tKfGXjDOdnZ+Ek4UASIC406QjIH5tbFhWEd2U+J/UaiodVhB6DsDHavTq9W5VOCNEcC3t1nQjVfjMiYzRSmjR27zE+vmOI8TtJo0FLYzksKftDUa387A+26k4w5R50Q2QL2ZmBxvtF8XtbiNNr5cWLlywfp9ZP84Ridz8YWZr8Da7Qp2kXBoruTggs94yArA02p08NTIc6zYwWTP8zUdcKgt0V3iqx5Vy6FYpGLcNL5L30LQmZYXlLEcHsya5tqsSerUICGgM5m9VZDl5ikeydA7W6NQIDAQAB',
    ]
];
